/*  main.c  - main */

#include <xinu.h>
#include <stdio.h>

/************************************************************************/
/*									*/
/* main - main program for testing Xinu					*/
/*									*/
/************************************************************************/

int main(int argc, char **argv)
{
	umsg32 retval;

	lfsystest();
	//kprintf("lfsystest done!\r\n");

	/* Creating a shell process */

	resume(create(shell, 4096, 1, "shell", 1, CONSOLE));
	//kprintf("create shell done!\r\n");

	retval = recvclr();
	//kprintf("recvclr() done\r\n");
	
	while (TRUE) {
		retval = receive();
		kprintf("\n\n\rMain process recreating shell\n\n\r");
		resume(create(shell, 4096, 1, "shell", 1, CONSOLE));
	}
		
	return OK;
}
